using Godot;


public partial class IdleState : State
{
    private Player _player;

    public override void Enter() 
    {
        base.Enter();
        _player = SM.Target as Player;
        _player.StateLbl.Text = "State";
    }

    public override void Update(double delta)
    {
        base.Update(delta);
        if (!Input.GetVector("ui_left", "ui_right", "ui_up", "ui_down").IsZeroApprox())
        {
            EmitSignal(SignalName.Switch, "Move");
        }

    }
}
